using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
using CMS.Core.DataInterfaces;
using CMS.Core.Domain;
using CMS.Data;
using CMS.Presenters;
using AjaxPro;

namespace CMS.Web.CompDenu
{
    public partial class SelectNguoiGui : System.Web.UI.Page
    {
        IList<NguoiGuiDon> dbList;

        public String ObjId = "";
        public String HidId = "";
        public int MaDonVi = 0;

        public SelectNguoiGui()
        {
        }
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            this.ObjId = (this.Request.QueryString["objId"] == null) ? Convert.ToString(MaDonVi) : this.Request.QueryString["objId"];
            this.HidId = this.Request.QueryString["hidId"];

            dbList = NHibernateDaoFactory.Instance.GetNguoiGuiDonDao().GetAll();
            // Load data
            lstNguoiGui.ClearSelection();
            lstNguoiGui.DataSource = dbList;
            lstNguoiGui.DataBind();
        }                   
    }
}
